var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(g, f, e) {
    if (status == 0 && g == 0) {
        cm.dispose();
        return
    }(g == 1) ? status++ : status--;
    selectionLog[status] = e;
    var c = -1;
    if (status <= c++) {
        cm.dispose()
    } else {
        if (status === c++) {
            cm.sendNormalTalk_Bottom("真的好酷啊！\r\n谁能想象得到我们市里能够建立起这么棒的博物馆？", 37, 1540852, false, true);
            if (cm.getNumberFromQuestInfo(33990, "check1") > 0) {
                cm.dispose()
            }
        } else {
            if (status === c++) {
                cm.sendNormalTalk_Bottom("而且听说里面所展示的全都是世界各地都找不到的珍贵物品，\r\n我实在是太期待里面都有什么东西了！", 37, 1540852, true, true)
            } else {
                if (status === c++) {
                    cm.sendNormalTalk_Bottom("等这座#b博物馆#k开馆，肯定会成为这座城市的#b地标#k的，\r\n能被邀请参加免费开业派对实在是很荣幸啊。", 37, 1540852, true, true)
                } else {
                    if (status === c++) {
                        cm.sendNormalTalk_Bottom("话说你是艺人吗？能不能留个号码……\r\n等一下，你这是要去哪儿啊？喂！留个号码嘛！", 37, 1540852, true, true)
                    } else {
                        if (status === c++) {
                            cm.addPopupSay(1540805, 2500, "#face18#第一次见面就要保险柜号码……这个世界真是可怕！", "", 0);
                            cm.addPopupSay(1540879, 2500, "#face6#就连阿里安特的舞姬都不会那么露骨。", "", 0);
                            cm.setNumberForQuestInfo(33990, "check1", 1);
                            cm.Hidden_background("party_Tuto", 1, 0, 0, 0);
                            var d = cm.getNumberFromQuestInfo(33990, "check1") > 0;
                            var b = cm.getNumberFromQuestInfo(33990, "check2") > 0;
                            var a = cm.getNumberFromQuestInfo(33990, "check3") > 0;
                            if (d && b && a) {
                                cm.sendNormalTalk_Bottom("好吧，这里能够收集的情报似乎已经都到手了，\r\n前往下一个地点吧？", 37, 1540879, true, true)
                            }
                            cm.dispose()
                        }
                    }
                }
            }
        }
    }
};